import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.PageFactory;

import java.util.logging.Logger;


public class BasePage {

    protected Logger LOG = Logger.getLogger(getClass().getName());
    protected WebDriver driver;

    public BasePage(WebDriver driver) {
        this.driver = driver;
        PageFactory.initElements(driver, this);
    }

    protected void clickOn(WebElement webElement) {
        LOG.info("Click on " + webElement);
        webElement.click();
    }
}
